{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>查看详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">资料名称：</label>
                            <div class="layui-input-block">
                                <input type="text" name="cpd_name" value="{$info.cpd_name}" class="layui-input" disabled >
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8 form-group">
                            <label class="layui-form-label">资料类型：</label>
                            <div class="layui-input-block">
                                <select name="cpd_type" disabled>
                                    <option value="1" {if $info.cpd_type==1}selected{/if}>图片</option>
                                    <option value="2" {if $info.cpd_type==2}selected{/if}>文档</option>
                                    <option value="3" {if $info.cpd_type==3}selected{/if}>视频</option>
                                </select>
                            </div>
                        </div>
                        {if $info.cpd_type==1}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">图片：</label>
                                {if(!empty($info.cpd_content))}
                                <div class="layui-input-block aaaaaa">
                                    {volist name='info.cpd_content' id='vo'}
                                    <img height="80" width="80" style="float:left;margin-top:5px;cursor:pointer;margin-right: 20px;" src="{$vo}" />
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>
                        {/if}
                        {if $info.cpd_type==2}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">文档：</label>
                                <div class="layui-input-block">
                                    <a href="{$info.cpd_content}" style="color: royalblue;" target="_blank">点击查看：{$info.cpd_name}</a>
                                </div>
                            </div>
                        </div>
                        {/if}
                        {if $info.cpd_type==3}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">视频：</label>
                                {if(!empty($info.cpd_content))}
                                <div class="layui-input-block">
                                    <video controls src="{$info.cpd_content}"></video>
                                </div>
                                {else /}
                                暂无视频
                                {/if}
                            </div>
                        </div>
                        {/if}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">缩略图：</label>
                                {if(!empty($info.cpd_thumb))}
                                <div class="input-group col-sm-4">
                                    <img id="user_image" class="img-circle" height="80px" style="float:left;margin-top:5px;cursor:pointer;border-radius: 5px" src="{$info.cpd_thumb}" onclick='imgDisplay(this)'/>
                                </div>
                                {else /}
                                暂无logo
                                {/if}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md12">
                            <label class="layui-form-label">省市：</label>
                            {if $info.sheng}
                            <div class="layui-input-inline">
                                <input type="text" name="cpd_name" value="{$info.sheng}" class="layui-input" disabled >
                            </div>
                            <div class="layui-input-inline" style="margin-top: 5px;width: 50%;">
                                {$info.shi}
                            </div>
                            {else /}
                            <div class="layui-input-inline">
                                <input type="text" name="cpd_name" value="全国" class="layui-input" disabled >
                            </div>
                            {/if}
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">浏览量：</label>
                            <div class="layui-input-block">
                                <input type="text" name="cpd_browse" value="{$info.cpd_browse}" class="layui-input" disabled >
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">排序值：</label>
                            <div class="layui-input-block">
                                <input type="number" placeholder="值越大越靠前" name="cpd_sort" value="{$info.cpd_sort}" maxlength="11" class="layui-input" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-primary" onclick="wk.layer_close('close')">关闭</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
<script>
    $('.aaaaaa').viewer({
        url: 'data-original',
    });
</script>